export  type EventSourceConfig = {
    url?: string;
    queryParams?: Record<string, string>;
    withCredentials?: boolean;
    onMessage?: (arg: string) => void;
    onError?: (error: Error) => void;
    onEnd?: (arg: any) => void;
};

export interface ChatMessage {
    id: string;
    author: 'User' | 'Assistance';
    text: string;
    isStreaming?: boolean;
    timestamp?: number;
}
